package com.ruoyi.repn.controller.front;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.annotation.RepeatSubmit;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.repn.domain.ReportInfo;
import com.ruoyi.repn.service.IReportInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cpf
 * @date 2024/3/4 11:18
 * @description
 */
@RestController
@RequestMapping("/front/repn/info")
public class FrontInfoController extends BaseController {


    @Autowired
    private IReportInfoService reportInfoService;


    /**
     * 新增年报信息
     */
    @RepeatSubmit
    @PostMapping
    public AjaxResult add(@RequestBody ReportInfo reportInfo)
    {
        return reportInfoService.insertReportInfo(reportInfo);
    }

}